<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Set SAX handlers for a XSLT processor</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.xslt-set-object.html">xslt_set_object</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.xslt-set-sax-handlers.html">xslt_set_sax_handlers</a></div>
 <div class="up"><a href="ref.xslt.html">XSLT (PHP 4) 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.xslt-set-sax-handler" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">xslt_set_sax_handler</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.0.3)</p><p class="refpurpose"><span class="refname">xslt_set_sax_handler</span> &mdash; <span class="dc-title">Set SAX handlers for a XSLT processor</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.xslt-set-sax-handler-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="type"><span class="type void">void</span></span> <span class="methodname"><strong>xslt_set_sax_handler</strong></span>
    ( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$xh</code></span>
   , <span class="methodparam"><span class="type">array</span> <code class="parameter">$handlers</code></span>
   )</div>

  <p class="para rdfs-comment">
   Set SAX handlers on the resource handle given by
   <em><code class="parameter">xh</code></em>. 
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.xslt-set-sax-handler-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    <dt>
<em><code class="parameter">
xh</code></em></dt>
<dd>
<p class="para"><acronym title="eXtensible Stylesheet Language Transformations">XSLT</acronym> 处理器连接标识符，由
<span class="function"><a href="function.xslt-create.html" class="function">xslt_create()</a></span> 创建。</p></dd>


    
     <dt>
<em><code class="parameter">handlers</code></em></dt>

     <dd>

      <p class="para">
       SAX handlers should be a two dimensional array
          with the format (all top level elements are optional):
          <div class="informalexample">
           <div class="example-contents">
<div class="cdata"><pre>
array(
[document] =&gt;
    array(
        start document handler,
        end document handler
    ),
[element] =&gt;
    array(
        start element handler,
        end element handler
    ),
[namespace] =&gt;
    array(
        start namespace handler,
        end namespace handler
    ),
[comment] =&gt; comment handler,
[pi] =&gt; processing instruction handler,
[character] =&gt; character data handler
)
</pre></div>
           </div>

          </div>
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.xslt-set-sax-handler-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   没有返回值。
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.xslt-set-object.html">xslt_set_object</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.xslt-set-sax-handlers.html">xslt_set_sax_handlers</a></div>
 <div class="up"><a href="ref.xslt.html">XSLT (PHP 4) 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
